-
-
Notifications
You must be signed in to change notification settings - Fork 39
feat: try allDiffs
api first and fallback to showChanges
when unavailable
#210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🦋 Changeset detectedLatest commit: 3f0d445 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
WalkthroughThis pull request updates the system’s logic for retrieving diff information. The code now attempts to use the Changes
Sequence Diagram(s)sequenceDiagram
participant CM as Comment Module
participant API as GitLab API
CM->>API: Call allDiffs for diff retrieval
API-->>CM: Return diff data or error
alt Error is GitbeakerRequestError (or matching status)
CM->>API: Call showChanges as fallback
API-->>CM: Return diff data
end
Assessment against linked issues
Poem
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
src/comment.tsOops! Something went wrong! :( ESLint: 9.23.0 Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@1stg/eslint-config' imported from /eslint.config.js src/utils.tsOops! Something went wrong! :( ESLint: 9.23.0 Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@1stg/eslint-config' imported from /eslint.config.js 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (3)
🧰 Additional context used🧬 Code Definitions (1)src/comment.ts (2)
🔇 Additional comments (8)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
commit: |
|
📊 Package size report -0.04%↓
Unchanged files
🤖 This report was automatically generated by pkg-size-action |
@codecov-ai-reviewer review |
On it! We are reviewing the PR and will provide feedback shortly. |
fix #187
Summary by CodeRabbit
New Features
Refactor